// 系统基础类型定义
export interface Position {
  x: number;
  y: number;
}

export interface RobotInfo {
  serialNumber: string;        // 机器人序号
  position: Position;          // 当前坐标位置
  next: Position;              // 下一个目标坐标
  termination: Position;       // 最终目标坐标
  robotStatus: string;         // 机器人状态   FREE | MOVING | QUEUING
  selfMovingNumber: number;    // 自行移动次数
  selfQueuingNumber: number;   // 排队次数
  listenedAddress: string;     // 监听的地址
}

export interface Order {
  orderNumber: string;
  patient: string;
  patientId: string;
  doctor: string;
  doctorId: string;
  medicine: string;
  date: Date;
  status: 0 | 1 | 2 ; //未完成  已完成 失败 
}

export interface DeliveryRecord {
  orderNumber: string;
  serialNumber: string;
  consumedTime: number; 
  window: number;
  deliveryDate: Date;
  trackingNumber: string;
  status: 0 | 1 | 2;
}

export interface DeliveryFilter {
  orderNumber: string;        
  serialNumber: string;       
  status: 0 | 1 | 2;         
  deliveryDate: Date | ""; 
}

export interface Pop{
  robotType: string,  // robot | deliver
  serialNumber: string,
  message: string,
  popType:string,  // REGISTER | DELIVER | COLLISION | LOST
}
